import { Controller, Post, Body, Get } from '@nestjs/common';
import { VerificationCodeService } from './verification-code.service';

@Controller('components/code')
export class VerificationCodeController {
  constructor(
    private readonly verificationCodeService: VerificationCodeService,
  ) {}

  @Post('/clearAll')
  clearCode() {
    //开启事务第三步：获取事务管理器)
    return this.verificationCodeService.removeAllCode();
  }
}
